package com.yungu.swift.api.wxapi;

import static com.yungu.swift.api.config.NacosListener.SYS_CONFIG;
import static com.yungu.swift.api.config.NacosListener.WXPAY_CONFIG;

/**
 * 微信用常量类
 *
 * @author Zerrion
 * @since 2018/5/4.
 */
public class WxConstants {

    public static String APPID;

    public static String WXAPPID;

    public static String WXPARTNER;

    public static String APPSECRET;

    public static String WXAPPKEY;

    public static String WX_APPLET_APPID;

    public static String WX_APPLET_APPSECRET;

    public static String redirectUrl;

    public static String WX_PUBLIC_APPKEY;

    public static String WX_PUBLIC_APPID;

    public static String WX_PUBLIC_APPSECRET;

    static {
        APPID = SYS_CONFIG.getAppid();
        WXAPPID = WXPAY_CONFIG.getPassengerWxAppid();
        WXPARTNER = WXPAY_CONFIG.getPassengerWxPartner();
        APPSECRET = WXPAY_CONFIG.getPassengerWxAppSecret();
        WXAPPKEY = WXPAY_CONFIG.getPassengerWxAppKey();
        redirectUrl = SYS_CONFIG.getWxPayCallback();
        WX_APPLET_APPID = WXPAY_CONFIG.getPassengerAppletWxAppid();
        WX_APPLET_APPSECRET = WXPAY_CONFIG.getPassengerAppletWxAppSecret();
        WX_PUBLIC_APPKEY = WXPAY_CONFIG.getPassengerPublicWxAppKey();
        WX_PUBLIC_APPID = WXPAY_CONFIG.getPassengerH5WxAppid();
        WX_PUBLIC_APPSECRET = WXPAY_CONFIG.getPassengerH5WxAppSecret();
    }

}
